import * as types from './type';

export const setArticlePage = (value) => ({
    type: types.ARTICLE_SET_PAGE,
    value
})

export const setArticleSize = (value) => ({
    type: types.ARTICLE_SET_SIZE,
    value
})

export const setArticleData = (value) => ({
    type: types.ARTICLE_SET_DATA,
    value
})
export const SagaQuery = () => ({
    type: types.ARTICLE_QUERY
})
export const setArticleObjectValue = (value) => ({
    type: types.ARTICLE_OBJECT_VALUE,
    value
})
export const setArticleTotal = (value) => ({
    type: types.ARTICLE_SET_TOTAL,
    value
})

export const getArticleCurrentData = () => ({
    type: types.ARTICLE_GET_CURRENT_DATA
})

export const getArticleNextData = () => ({
    type: types.ARTICLE_GET_NEXT_DATA
})

export const getArticlePrevData = () => ({
    type: types.ARTICLE_GET_PREV_DATA
})
